from django.db import models

# Create your models here.
from meiduo_mall.utils.models import BaseModel
from orders.models import OrderInfo


class Payment(BaseModel):
    order = models.ForeignKey(OrderInfo, on_delete=models.CASCADE, verbose_name="美多订单号")
    trade_id = models.CharField(max_length=100, unique=True, null=True, blank=True, verbose_name="支付宝流水水号")


    class Meta:
        db_table = "tb_payment"

